package xcu.lxj.nettychat.chat.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import xcu.lxj.nettychat.chat.domain.entity.Contact;

import java.util.Date;
import java.util.List;

/**
* @author 32164
* @description 针对表【contact(会话列表)】的数据库操作Mapper
* @createDate 2024-09-29 10:24:11
* @Entity xcu.lxj.nettychat.common.domain.Contact
*/
public interface ContactMapper extends BaseMapper<Contact> {
    /**
     * 高并发有死锁赶紧弃用
     */
    @Deprecated
    void refreshOrCreateActiveTime(@Param("roomId") Long roomId, @Param("memberUidList") List<Long> memberUidList, @Param("msgId") Long msgId, @Param("activeTime") Date activeTime);

    void refreshOneOrCreateActiveTime(@Param("roomId") Long roomId, @Param("uid") Long uid, @Param("msgId") Long msgId, @Param("activeTime") Date activeTime);


}



